﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Himp.Platform.Dc.Migrations
{
    /// <inheritdoc />
    public partial class add_table_BIZ_SEQ : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "BIZ_SEQ",
                schema: "Dc",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uuid", nullable: false),
                    CURR_SEQ = table.Column<int>(type: "integer", nullable: false),
                    FORMAT = table.Column<string>(type: "text", nullable: false),
                    BIZ_SEQ_TYPE = table.Column<string>(type: "text", nullable: false),
                    TenantId = table.Column<Guid>(type: "uuid", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_BIZ_SEQ", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "DIAG_DICT",
                schema: "Dc",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uuid", nullable: false),
                    DIAG_CODE = table.Column<string>(type: "text", nullable: false),
                    DIAG_NAME = table.Column<string>(type: "text", nullable: false),
                    VER = table.Column<int>(type: "integer", nullable: false),
                    PINYIN_MEMO = table.Column<string>(type: "text", nullable: false),
                    WUBI_MEMO = table.Column<string>(type: "text", nullable: false),
                    IsDeleted = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
                    TenantId = table.Column<Guid>(type: "uuid", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_DIAG_DICT", x => x.Id);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "BIZ_SEQ",
                schema: "Dc");

            migrationBuilder.DropTable(
                name: "DIAG_DICT",
                schema: "Dc");
        }
    }
}
